package com.wlyuan.open.scanner.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yuanjie
 * @since 2022-10-27
 */
@Data
@TableName("TMS_OrderFlow")
@ApiModel(value = "OrderflowDO对象", description = "")
public class OrderFlowDO implements Serializable {


    private static final long serialVersionUID = -5391487629892385649L;
    @ApiModelProperty("编号")
    @TableId(value = "Flow_ID", type = IdType.AUTO)
    private Long flowId;

    @ApiModelProperty("订单号")
    private Long flowOrderid;

    @ApiModelProperty("源状态")
    private Long flowSrcstatus;

    @ApiModelProperty("目标状态")
    private Long flowDststatus;

    @ApiModelProperty("处理结果，0 接受 1 拒绝 2 打回 3 备注 4撤回 5登记结账 6订单到达 7自营打回 8撤销 9委托 11调度 12 新版流程操作")
    private Long flowOperation;

    @ApiModelProperty("操作者")
    private Long flowCreator;

    @ApiModelProperty("所属公司(冗余)")
    private Long flowCompanyid;

    @ApiModelProperty("添加时间")
    private LocalDateTime flowInserttime;

    @ApiModelProperty("是否有效")
    private Integer flowInvalid;

    @ApiModelProperty("备注")
    private String flowComments;

    @ApiModelProperty("描述")
    private String flowDescription;

    @ApiModelProperty("跟踪类型，0 操作 1路线")
    private Integer flowType;

    @ApiModelProperty("出发地址")
    private String flowFromaddr;

    @ApiModelProperty("到达地址")
    private String flowToaddr;

    @ApiModelProperty("更新时间")
    private LocalDateTime flowUpdatetime;

    @ApiModelProperty("关单注记")
    private Integer flowClosemark;

    @ApiModelProperty("设备綁定标识 1 移动端绑定")
    private Integer flowDevicebindtype;

    private Long optStatus;


}
